package com.recruit.g1.basic.pojo.vo;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;
import java.util.List;

@Data
@Getter
@FieldDefaults(level = AccessLevel.PRIVATE)
public class AreaVO implements Serializable {

    Long id;

    Long parentId;

    String name;

    List<AreaVO> children;

    public void setId(Long id) {
        this.id = id;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setChildren(List<AreaVO> children) {
        this.children = children;
    }

    public Long getId() {
        return id;
    }

    public Long getParentId() {
        return parentId;
    }

    public String getName() {
        return name;
    }

    public List<AreaVO> getChildren() {
        return children;
    }
}